package com.sc.nft.entity.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.sc.nft.enums.BoxConditionEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;

import javax.validation.constraints.NotNull;

@Data
@Slf4j
public class AddBoxConditionDTO {
    @ApiModelProperty(value = "盲盒商品id")
    @JsonIgnore
    private Long boxId;

    @ApiModelProperty(value = "兑换条件类型  1.星球碎片 2.权益道具 3.生态积分")
    private BoxConditionEnum conversionType;

    @ApiModelProperty(value = "1:持有藏品  2:条件-例子:星球碎片  权益卡 生态积分")
    @NotNull(message = "兑换条件类型不能为空")
    private Integer type;

    @ApiModelProperty(value = "持有的藏品名字or需要满足条件的条件内容名字")
    private String name;

    @ApiModelProperty(value = "这个id有可能是藏品id,也有可能是满足兑换条件的id.需要根据type类型进行判定")
    private Long tripartiteId;

    @ApiModelProperty(value = "消耗数量")
    private String costQuantity;

    @ApiModelProperty(value = "缩略图")
    @JsonIgnore
    private String creationContent;

}
